package com.homegoods.area.ui.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.contrarywind.interfaces.IPickerViewData;

import java.util.List;

/**
 * @author QiQi
 * @ClassName: ProvinceBean
 * @date 2018/10/6
 * @description
 */
public class ProvinceBean implements IPickerViewData {


    /**
     * "name": "中国",
     * "sid": "fJ8UmXBJ3Bj5ZPVitL2fVSalnUmbxwKmpKzabCVIKFPMz1PZwSUOhNwwNgVbV0lk",
     * "scount": "25",
     * "rid": "R1",
     * "items
     */

    private String name;
    private String sid;
    private String scount;
    private String rid;
    private List<CityBean> items;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getScount() {
        return scount;
    }

    public void setScount(String scount) {
        this.scount = scount;
    }

    public String getRid() {
        return rid;
    }

    public void setRid(String rid) {
        this.rid = rid;
    }

    public List<CityBean> getItems() {
        return items;
    }

    public void setItems(List<CityBean> items) {
        this.items = items;
    }

    @Override
    public String getPickerViewText() {
        return this.name;
    }

    public static class CityBean {
        private String name;
        private String sid;
        private String scount;
        private String rid;
        private List<AreaBean> items;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSid() {
            return sid;
        }

        public void setSid(String sid) {
            this.sid = sid;
        }

        public String getScount() {
            return scount;
        }

        public void setScount(String scount) {
            this.scount = scount;
        }

        public String getRid() {
            return rid;
        }

        public void setRid(String rid) {
            this.rid = rid;
        }

        public List<AreaBean> getItems() {
            return items;
        }

        public void setItems(List<AreaBean> items) {
            this.items = items;
        }
    }

    public static class AreaBean {
        /**
         */

        private String name;
        private String sid;
        private String scount;
        private String rid;
        private List<CountyBean> items;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSid() {
            return sid;
        }

        public void setSid(String sid) {
            this.sid = sid;
        }

        public String getScount() {
            return scount;
        }

        public void setScount(String scount) {
            this.scount = scount;
        }

        public String getRid() {
            return rid;
        }

        public void setRid(String rid) {
            this.rid = rid;
        }

        public List<CountyBean> getItems() {
            return items;
        }

        public void setItems(List<CountyBean> items) {
            this.items = items;
        }
    }

    public static class CountyBean {
        private String name;
        private String sid;
        private String scount;
        private String rid;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSid() {
            return sid;
        }

        public void setSid(String sid) {
            this.sid = sid;
        }

        public String getScount() {
            return scount;
        }

        public void setScount(String scount) {
            this.scount = scount;
        }

        public String getRid() {
            return rid;
        }

        public void setRid(String rid) {
            this.rid = rid;
        }
    }
}
